package com.ruoyi.system.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TBOrderSpreadMapper;
import com.ruoyi.system.domain.TBOrderSpread;
import com.ruoyi.system.service.ITBOrderSpreadService;

/**
 * 订单分期付款Service业务层处理
 * 
 * @author pspyy
 * @date 2022-03-09
 */
@Service
public class TBOrderSpreadServiceImpl implements ITBOrderSpreadService 
{
    @Autowired
    private TBOrderSpreadMapper tBOrderSpreadMapper;

    /**
     * 查询订单分期付款
     * 
     * @param id 订单分期付款主键
     * @return 订单分期付款
     */
    @Override
    public TBOrderSpread selectTBOrderSpreadById(Long id)
    {
        return tBOrderSpreadMapper.selectTBOrderSpreadById(id);
    }

    /**
     * 查询订单分期付款列表
     * 
     * @param tBOrderSpread 订单分期付款
     * @return 订单分期付款
     */
    @Override
    public List<TBOrderSpread> selectTBOrderSpreadList(TBOrderSpread tBOrderSpread)
    {
        return tBOrderSpreadMapper.selectTBOrderSpreadList(tBOrderSpread);
    }

    /**
     * 新增订单分期付款
     * 
     * @param tBOrderSpread 订单分期付款
     * @return 结果
     */
    @Override
    public int insertTBOrderSpread(TBOrderSpread tBOrderSpread)
    {
        return tBOrderSpreadMapper.insertTBOrderSpread(tBOrderSpread);
    }

    /**
     * 修改订单分期付款
     * 
     * @param tBOrderSpread 订单分期付款
     * @return 结果
     */
    @Override
    public int updateTBOrderSpread(TBOrderSpread tBOrderSpread)
    {
        return tBOrderSpreadMapper.updateTBOrderSpread(tBOrderSpread);
    }

    /**
     * 批量删除订单分期付款
     * 
     * @param ids 需要删除的订单分期付款主键
     * @return 结果
     */
    @Override
    public int deleteTBOrderSpreadByIds(Long[] ids)
    {
        return tBOrderSpreadMapper.deleteTBOrderSpreadByIds(ids);
    }

    /**
     * 删除订单分期付款信息
     * 
     * @param id 订单分期付款主键
     * @return 结果
     */
    @Override
    public int deleteTBOrderSpreadById(Long id)
    {
        return tBOrderSpreadMapper.deleteTBOrderSpreadById(id);
    }

    @Override
    public int deleteTBOrderSpreadByOrderNum(String orderNum) {
        return tBOrderSpreadMapper.deleteTBOrderSpreadByOrderNum(orderNum);
    }

    @Override
    public List<Long> selectOrderSpreadIdList(String orderNum) {
        return tBOrderSpreadMapper.selectOrderSpreadIdList(orderNum);
    }

    @Override
    public List<Long> selectOrderSpreadStatue(String orderNum) {
        return tBOrderSpreadMapper.selectOrderSpreadStatue(orderNum);
    }

    @Override
    public List<Map> selectMessageTel() {
        return tBOrderSpreadMapper.selectMessageTel();
    }
}
